'use strict';

angular.module('com.dcos.app').factory('TemplateDetailService', function ($http) {
	return {
		init: function (t_id) {
	      return $http({
	        method: 'POST',
	        url:'/v1/template/query',
	        data:JSON.stringify({t_id:t_id}),
	        headers: {'Content-type': 'application/json','Accept': 'application/json'}
	      })
	    },
		save: function (data) {
	      return $http({
	        method: 'POST',
	        url:'/v1/template/save',
	        data:JSON.stringify(data),
	        headers: {'Content-type': 'application/json','Accept': 'application/json'}
	      })
	    }
	}
});
